package com.lc.sms.service;

import com.alibaba.fastjson2.JSONObject;
import com.lc.sms.common.res.ApiResult;
import com.lc.sms.handle.SmsHandle;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @description: some desc
 * @author: LChuang
 * @date: 2023/9/22 14:35
 */
@Service
@RequiredArgsConstructor
public class TestServiceImpl implements SmsHandle {


    public ApiResult service1(String phone){
        String code = "";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("code", "145847");
        this.sendMsg(code, phone, jsonObject);

        return ApiResult.success();
    }

}
